﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using UCL.Forms;

namespace UAS5
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            System.Diagnostics.Process instance = ProgramMutexHelper.RunningInstance(System.Reflection.Assembly.GetExecutingAssembly());
            if (instance == null)
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);

                new frmMain().Show();
                Application.Run();
            }
            else
            {
                ProgramMutexHelper.HandleRunningInstance(instance, ProgramMutexHelper.FindWindow(null, "UAS5"));
            }

            /*
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new frmMain());
             */
        }
    }
}
